package com.adwszzy;

//import com.sun.jna.Native;
//import com.sun.jna.platform.win32.WinDef.HHOOK;
//import com.sun.jna.platform.win32.WinDef.LPARAM;
//import com.sun.jna.platform.win32.WinDef.WPARAM;
//import com.sun.jna.platform.win32.WinUser;
//import com.sun.jna.platform.win32.WinUser.HookProc;
//import com.sun.jna.platform.win32.WinUser.KBDLLHOOKSTRUCT;

import com.melloware.jintellitype.HotkeyListener;
import com.melloware.jintellitype.JIntellitype;
import com.melloware.jintellitype.JIntellitypeConstants;

import java.awt.*;
import java.io.File;

public class ScreenMatcherThread implements Runnable{
    public static int mode=0;
    public static void main(String[] args) {
        registerGlobalKeyboardHook();
    }

    private static void registerGlobalKeyboardHook() {


    }

    public ScreenMatcherThread() {
    }
    public ScreenMatcherThread(int mode) {
        ScreenMatcherThread.mode = mode;
    }

    @Override
    public void run() {
        try {
            if (mode == 0) {
                ScreenMatcher.execFlag = true;
                ScreenMatcher.backPackMatcher();
            }else if (mode == 1) {
                //幸运五合一
                ScreenMatcher.execFlag = true;
                ScreenMatcher.fuseTheSoundSkeleton();
            }else if (mode == 2) {
                //将背包中的new标签全部点掉
            }

        } catch (AWTException e) {
            throw new RuntimeException(e);
        } catch (InterruptedException e) {
            System.out.println("线程中断");
//            throw new RuntimeException(e);
        }
    }
}